package ${package.Controller};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
import ${package.Entity}.command.${entity}SaveCommand;
import ${package.Entity}.command.${entity}UpdateCommand;
import ${package.Entity}.resp.${entity}DetailResp;
import ${package.Entity}.resp.${entity}PageResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
* <p>
    * ${table.comment!} 转换器
    * </p>
*
* @author ${author}
* @since ${date}
*/
@Mapper
public interface ${entity}Converter {
    ${entity}Converter INSTANCE = Mappers.getMapper(${entity}Converter.class);

    ${entity} convert(${entity}SaveCommand source);

    ${entity} convert(${entity}UpdateCommand source);

    ${entity}DetailResp convert2DetailResp(${entity} source);

    Page<${entity}PageResp> convert2PageResp(Page<${entity}> source);
}
